package structure.proxy.impl;

import structure.proxy.Service;

public class Factory implements Service {

	@Override
	public void sell(String goods) {
		createProduct(goods);
		System.out.println("我是工厂，我把已经生产好的" + goods + "卖出去");
	}

	private void createProduct(String goods) {
		System.out.println("我是工厂，我正在生产" + goods);
	}
}
